<include file='Admin/Tpl/Public/nav.html' />
<div class="page-content">
    <div class="container-fluid">
    	<br/>
        <ol class="breadcrumb default square rsaquo sm">
            <li><a href="index.html"><i class="fa fa-home"></i></a></li>
            <li><a href="#fakelink">Teamin</a></li>
            <li class="active">新闻管理</li>
        </ol>

        <div class="the-box no-border">
        
            <div class="table-responsive div1 div_search">
                <table class="table table-th-block table-hover">
                    <thead>
                    <tr style="text-align:center">
                        <td style="text-align:center;width:60px">编号</td>
                        <td style="text-align:center">名称</td>
                        <td style="text-align:center;width:180px">添加时间</td>
                        <td style="text-align:center;width:100px">排序</td>
                        <td style="text-align:center;width:180px">操作</td>
                      </tr>
                    </thead>
                    <tbody>
                    <tbody>
                    <volist name="rs.data" id="val"> 
                      <tr>                    
                        <td style='text-align:center;vertical-align:middle'>{$val.channel_id}</td>
                        <td style='text-align:center;vertical-align:middle'>
                            <a href="__ROOT__/{$val.news_url}" target="_blank">{$val.channel_name}</a>
                        </td>
                        <td style='text-align:center;vertical-align:middle'>{$val.time_insert|date="Y-m-d H:i",###}</td>
                        <td style='text-align:center;vertical-align:middle'>{$val.channel_sort}</td>
                        <td style='text-align:center;vertical-align:middle''>
                            <a href='javascript:void(0)' onclick="to_upt({$val.channel_id})" title='Edit'>修改</a>&nbsp;|&nbsp;
                            <a href='javascript:void(0)' onclick='to_delete({$val.channel_id})' title='Delete'>删除</a>
                        </td>
                      </tr>
                    </volist>
                    </tbody>
                </table>
                <ul class="pagination success">{$rs.show}</ul>
            </div>

            <div class="table-responsive" id="hl"></div>

        </div>
    </div>
</div>
</div>


</body>
</html>
<script type="text/javascript">
function to_delete(a){
	if(confirm("确认删除?")){
		$.get('__URL__/del_news_channel?channel_id='+a,'',function(){window.location='__SELF__';},'json');	
	}
}
function to_upt(a){
	window.location='__URL__/to_update_channel?channel_id='+a;
}
</script>
